﻿//import com.mixmedia.navigation.Navigation;
import mx.utils.Delegate;
/**
 * @author Colin Colvia
 */
class com.mixmedia.navigation.ClickLogging {
	private var delLog : Function;
//	private var nav:Navigation;
	
	public function ClickLogging(){
//		nav = Navigation.instance();
		delLog = Delegate.create(this,log);
//		nav.addEventListener(Event.CLICK,delLog);
	}
	
	public function log(evt){
		trace(evt.value);
		//getURL('javascript:clickCheck("'+evt.value+'");');
	};

	public function addLogToEventDispatcher(obj:Object,evtType:String){
		obj.addEventListener(evtType,delLog);
	}
}